<template>
    <div>
          <div class="goodsdesc-container">
             <h3>{{list.title}}</h3>
    <hr>
    <div class="content" v-html="list.content"></div>
  </div>
    
    </div>
</template>

<script>
    export default{
        data(){
            return{
                list:[]
            }
        },
        created() {
          this.gettt();
        },
        methods:{
              async gettt(){
                const {data:res} = await this.$http.get("api/goods/getdesc/" + this.$route.params.id)
                 console.log(res)
                 this.list=res.message[0]
            }
        }
    }
</script>

<style lang="">
    .goodsdesc-container{
         padding: 4px;
    }
  .goodsdesc-container h3 {
    font-size: 16px;
    color: #226aff;
    text-align: center;
    margin: 15px 0;
  }
  .content img{
      width: 100%;
  }
    
</style>